package com.dk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dk.pojo.Menuandpart;
import com.dk.mapper.MenuandpartMapper;
import com.dk.pojo.Partanduser;
import com.dk.service.IMenuandpartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2022-07-19
 */
@Service
public class MenuandpartServiceImpl extends ServiceImpl<MenuandpartMapper, Menuandpart> implements IMenuandpartService {

    @Autowired
    private MenuandpartMapper mapper;
    @Override
    public Integer deleIpart(List<Integer> partList) {
        QueryWrapper<Menuandpart> queryWrapper=new QueryWrapper<>();
        queryWrapper.in("partid",partList);
        return mapper.delete(queryWrapper);

    }

}
